ifeq ($(TOP_DIR),)
KERNEL_DIR := $(srctree)

EXTRA_CFLAGS += -I$(PWD)/drivers/dev_inc
EXTRA_CFLAGS += -I$(PWD)/libc_sec/include

ifeq ($(TARGET_PRODUCT),cloud)
EXTRA_CFLAGS += -DCFG_SOC_PLATFORM_1920
endif

ifeq ($(fpga),true)
EXTRA_CFLAGS += -DTEMP_FPGA_B100
endif

obj-m   += drv_mdio.o
drv_mdio-objs := hns_mdio.o


else

EXTRA_CFLAGS += -I$(TOP_DIR)/drivers/dev_inc
EXTRA_CFLAGS += -I$(TOP_DIR)/libc_sec/include

ifeq ($(PRODUCT),ascend910)
EXTRA_CFLAGS += -DCFG_SOC_PLATFORM_1920
endif

ifeq ($(fpga),true)
EXTRA_CFLAGS += -DTEMP_FPGA_B100
endif

obj-m   += drv_mdio.o
drv_mdio-objs := hns_mdio.o
endif